# -*- coding: utf-8 -*-

from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeService

if __name__ == '__main__':
    service = ChromeService(executable_path='./chrome/chromedriver.exe')
    options = webdriver.ChromeOptions()
    #关闭渲染样式和JavaScript
    options.add_argument('--disable-css-animation')
    options.add_argument('--disable-css-transitions')
    options.add_argument('--disable-javascript')
    driver = webdriver.Chrome(service=service, options=options)
    driver.get("https://www.lily-bearing.com/products/r1-4/")
    print(driver.title)
    driver.quit()
